<?php
include ($_SERVER['DOCUMENT_ROOT'].'/standart/checkUser.php');
if(isset($_GET["CONTENT_ID"])){
	$db = connect();
	$id = $_GET["CONTENT_ID"];
	$stmt ="SELECT CONTENT_TEXT
	FROM WEB_CONTENT
	WHERE ID = ?";
	$statement = $db->prepare($stmt);
	$statement->bind_param('i', $id);
	$statement->execute();
	$statement->bind_result($col1);
// 	$res = $db->query($stmt) or die($stmt."<br/><br/>".mysql_error());
	if($row = $statement->fetch()){
		echo "<div id=\"getContentSpan\">".$col1."</div>";
	}else{
		echo "<div id=\"getContentSpan\"></div>";
	}
	$statement->close();
	disconnect($db);
}else {
	echo "<div id=\"getContentSpan\"></div>";
}
?>
